package com.ly.hotel.view.common;

import java.io.Serializable;

/**
 * @author jouson
 * 底部导航栏按键属性文件
 */
public class BottomItemInfo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 19203364871632L;
	String showName;//显示在UI的名称
	String name;//这个按键在U盾的名称,必须要和U盾约定的名字一致
	boolean enable;//是否显示这个按键
	int keyCode;//按键的键值
	int imgRes;//按键的图片
	boolean respond = true;//是否响应按键键值
	boolean pressed = false;//当前是否按下
	private int msgNum = 0;

	public BottomItemInfo(String showName, String name, Boolean enable, int keyCode, int imgRes) {
		this.showName = showName;
		this.name = name;
		this.enable = enable;
		this.keyCode = keyCode;
		this.imgRes = imgRes;
	}

	public String getShowName() {
		return showName;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public int getKeyCode() {
		return keyCode;
	}

	public void setKeyCode(int keyCode) {
		this.keyCode = keyCode;
	}

	public boolean isPressed() {
		return pressed;
	}

	public void setPressed(boolean pressed) {
		this.pressed = pressed;
	}

	public int getImgRes() {
		return imgRes;
	}

	public void setImgRes(int imgRes) {
		this.imgRes = imgRes;
	}
	
	
	public boolean isRespond() {
		return respond;
	}

	public void setRespond(boolean respond) {
		this.respond = respond;
	}

	public void setMsgNum(int msgNum) {
		this.msgNum = msgNum;
	}

	public int getMsgNum() {
		return msgNum;
	}
}
